<?php
/**
 * Created by PhpStorm .
 * User: {Administrator}
 * Date: {2022/11/24 13:49}
 * Author: '树叶'
 * Email: 'ayunu@qq.com'
 * Motto Info: '理想如果不向现实做一点点屈服，那么理想也将归于尘土。'
 */

namespace app\common\model;
use think\Db;
use think\Model;

class Detail extends Model
{
    public static function addPrice($uid, $status, $price,$time)
    {
        $data = [
            'uid'    => $uid,
            'status' => $status,
            'price'  => $price,
            'createtime' => $time,
        ];
        Db::name('detail')->insertGetId($data);
        return true;
    }
}